#include <aphw/DataAccessModes.hpp>

#include <boost/python.hpp>
#include <ham/hamsterdb.h>

using namespace boost::python;

namespace
{

enum DataAccessModes
{
    ENFORCE_PRE110_FORMAT = HAM_DAM_ENFORCE_PRE110_FORMAT,
    RANDOM_WRITE = HAM_DAM_RANDOM_WRITE,
    SEQUENTIAL_INSERT = HAM_DAM_SEQUENTIAL_INSERT
};

}

namespace aphw
{

void init_DataAccessModes()
{
    enum_< ::DataAccessModes >("DataAccessModes")
        .value("ENFORCE_PRE110_FORMAT", ::ENFORCE_PRE110_FORMAT)
        .value("RANDOM_WRITE", ::RANDOM_WRITE)
        .value("SEQUENTIAL_INSERT", ::SEQUENTIAL_INSERT)
        ;
}

}
